package com.zhdl.hardware_modules.repository;

import com.project.common.repository.BaseRepository;
import com.zhdl.hardware_modules.entity.DeviceInfo;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface DeviceInfoRepository extends BaseRepository<DeviceInfo, String> {
    @Query(value = "select di from DeviceInfo di where di.deviceId in (select dp.deviceId from DeviceProcess dp)")
    List<DeviceInfo> findDeviceInfoById();
}
